import request from '@/utils/request'

// 查询公积金缴纳列表
export function listGjjjr(query) {
  return request({
    url: '/basebill/gjjjr/list',
    method: 'get',
    params: query
  })
}

// 查询公积金缴纳详细
export function getGjjjr(fid) {
  return request({
    url: '/basebill/gjjjr/' + fid,
    method: 'get'
  })
}

// 新增公积金缴纳
export function addGjjjr(data) {
  return request({
    url: '/basebill/gjjjr',
    method: 'post',
    data: data
  })
}

// 修改公积金缴纳
export function updateGjjjr(data) {
  return request({
    url: '/basebill/gjjjr',
    method: 'put',
    data: data
  })
}

// 删除公积金缴纳
export function delGjjjr(fid) {
  return request({
    url: '/basebill/gjjjr/' + fid,
    method: 'delete'
  })
}

// 调用eas接口
export function importGjjjr(fids) {
  return request({
    url: '/basebill/gjjjr/importGjjjr/' + fids,
    method: 'get'
  })
}
